package com.example.javasample.service.impl;

import com.example.javasample.domain.Origin;
import com.example.javasample.mapper.OriginMapper;
import com.example.javasample.service.IOriginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * OriginServiceImpl
 *
 * @author Kylin
 */
@Service
public class OriginServiceImpl implements IOriginService {

    @Autowired
    private OriginMapper originMapper;

    @Override
    public List<Origin> list(Origin origin) {
        return originMapper.list(origin);
    }

    @Override
    public int add(Origin origin) {
        return originMapper.add(origin);
    }

    @Override
    public boolean edit(Origin origin) {
        return originMapper.edit(origin);
    }

    @Override
    public Origin detail(Long originId) {
        return originMapper.detail(originId);
    }

    @Override
    public int delete(Long originId) {
        return originMapper.delete(originId);
    }

    @Override
    public int physicallyDelete(Long originId) {
        return originMapper.physicallyDelete(originId);
    }

    @Override
    public int batchAdd(List<Origin> originList) {
        return originMapper.batchAdd(originList);
    }

}
